<?php if (isset($this->error)):?>
  <?php echo $this->error;?>
<?php else :?>
  <h1><?php echo $this->document->title;?></h1>
  <div class="document_body">
    <?php echo $this->document->body;?>
  </div>
<?php endif;?>
